page {
  background-color: #242328;
}

.im-page {
  position: relative;
  // height: 100vh;
  overflow: hidden;
  border: 0px;
  background-color: #323239;
}

.im-list_new {
  top: 0;
  opacity: 0;
  width: 100%;
  position: absolute;
  overflow-x: hidden;
}

.im-list--item {
  padding: 0 32px 0 16px;
  margin: 48px 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;

  .list-item--avatar {
    width: 70px;
    height: 70px;
    border-radius: 0;
    margin-right: 27px;
    flex-shrink: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover; // 填充整个父容器
    }
  }

  .list-item--name {
    margin: 0px 0;
    font-size: 24px;
    color: #666666;
    // line-height: 80px;
  }

  .list-item--content {
    // max-width: 90vh; // 原始
    // max-width: 100%; 
    width: 90%;
    margin-right: 20px;
    padding: 18px;
    font-size: 26px;
    // background: #18a058;
    background: #0ac82f;
    color: #ffffff;
    border-radius: 8px;
    line-height: 1.4;
    position: relative;
    white-space: pre-line;

    &::after {
      right: auto;
      left: -22px;
      border-right-color: #0ac82f;
      border-left-color: transparent;
    }
  }

  &__robot {
    .list-item--content {
      background: #F3F6F6;
      color: #333333;

      &::after {
        right: auto;
        left: -22px;
        border-right-color: #F3F6F6;
        border-left-color: transparent;
      }
    }
  }
}

.btn_UV {
  background-color: grey;
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0px;
  flex: 1;
}

.placeholder-box {
  width: 100%;
  height: 142px;
}

.im-toolbar {
  position: fixed;
  left: 0;
  width: 100%;
  background: #323239;
  border-top: 1px solid #323239;
  display: flex;
  align-items: center;
  z-index: 200;
  justify-content: center;
  // background-color: rgba(114, 0, 0, 0.5);

  // input {
  //   flex: 1;
  //   margin: 14px 0px 14px 24px;
  //   padding: 15px 24px;
  //   background: #f8f8f8;
  //   border-radius: 36px;
  //   font-size: 28px;
  // }

  textarea {
    padding: 15px 20px;
    margin: 15px 10px;
    // margin: 15px 10px 0px 15px;
    border-radius: 20px;
    border: 1px solid #cccccc;
    // background-color: rgba(0, 114, 0, 0.5);
  }

  .send-button {
    overflow: hidden;
    text-align: center;
    margin: 0 20px 0 5px;
    display: block;
    width: 70px;
  }

  &--icon {
    transform: rotate(45deg);
    padding: 24px;
  }

  .rotate-in {
    animation: rotateIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }

  .rotate-out {
    animation: rotateOut 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateIn {
  0% {
    transform: rotate(45deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotateOut {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(45deg);
  }
}

.trash-icon,
.trash-icon:active {
  background: red;
}

.conversation,
.conversation:active {
  background: #18a058;
}

.conversation-disable,
.conversation-disable:active {
  background: gray;
}
